@extends('layouts.admin')
@section('title', '最新欧美脱口秀')
@section('styles')
    <link href="//cdn.bootcss.com/select2/4.0.1/css/select2.min.css" rel="stylesheet">
@endsection
@section('content')
    <div class="row">
        <h1>{{$episode->provider}}</h1>
        {!! Form::model($episode, ['route' => ['episode.update', $episode], 'method' => 'PUT']) !!}
        <div class="form-group">
            {!!  Form::label('raw_name', '原始名称', [])     !!}
            {!!  Form::text('raw_name', null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!!  Form::label('season', '季season number', [])     !!}
            {!! Form::selectRange('season', 0, 20 , null , ['class' => 'form-control']) !!}
        </div>
        <div class="form-group">
            {!!  Form::label('episode', '集episode number', [])     !!}
            {!! Form::selectRange('episode', 0, 50 , null , ['class' => 'form-control']) !!}
        </div>

        {{--http://select2.github.io/examples.html--}}
        <div class="form-group">
            {!!  Form::label('show_list', '关联到美剧(单选,选择了美剧就就可以不用传gif图片)  不能多选', [])  !!}
            {!!  Form::select('show_list[]',$shows,null,['class'=>'form-control','id'=>'show_list']) !!}
        </div>
        <div class="form-group">
            {!! Form::submit('Submit', ['class' => 'form-control btn-success']) !!}
        </div>
        {!! Form::close() !!}
    </div>
@endsection

@section('scripts')
    <script src="//cdn.bootcss.com/select2/4.0.1/js/select2.full.min.js"></script>
    <script>

        $('#show_list').select2({
//            placeholder:'请选择一个美剧',
        });

    </script>

@endsection
